<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="/struts-tags" prefix="s"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html>
<html lang="zh-cn">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport"
			content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
		<meta name="renderer" content="webkit">
		<title>后台管理</title>

		<script type="text/javascript">
		$(function(){
			$("#zhuangxiu").addClass("active");
			$("#zhuangxiu").find("ul li").eq(1).addClass("active");
			})
			</script>
	</head>

	<body>
		<div class="admin">

			<div class="panel">
				<div class="panel-head">
					<div class="line-middle">
						<div class="x3">
							banner添加
						</div>
						<div class="x3"></div>
						<div class="x3"></div>
					</div>
				</div>
				<div class="panel-body">

					<form name="form" action="banner!add.action" method="post"
						enctype="multipart/form-data">


						<div class="form-group">
							<div class="label">
								<label for="sitename">
									排列顺序：
								</label>
							</div>
							<div class="field">
								<input type="text" class="input" id="sitename"
									name="banner.orderid" size="50" placeholder="请输入排列顺序"
									data-validate="required:请输入排列顺序" />
							</div>
						</div>

						<div class="form-group">
							<div class="label">
								<label for="sitename">
									图片：
								</label>
							</div>
							<div class="field">
								<a class="button input-file" href="javascript:void(0);">+
									修改图片<input size="100" type="file" name="file"
										data-validate="required:请选择上传文件,regexp#.+.(jpg|jpeg|png|gif)$:只能上传jpg|gif|png格式文件" />
								</a>
							</div>
						</div>

						<div class="form-group">
							<div class="label">
								<label for="sitename">
									链接：
								</label>
							</div>
							<div class="field">
								<input type="text" class="input" id="sitename"
									name="banner.link" size="50" placeholder="请输入链接"
									data-validate="required:请输入链接" />
							</div>
						</div>
						</br>

						<input type="hidden" name="order.oid" value="${order.oid}" />
						<button class="button bg-blue" onclick="return checkForm()">
							提交
						</button>
					</form>

				</div>
			</div>


		</div>


		<script type="text/javascript">
function checkForm(){

var company= document.getElementById("company").value;

if(company=="请选择") {

alert("请选择快递公司！");
return false;
}else{
document.getElementBy("form").submit();
return true;
}
}

</script>

	</body>
</html>